package cn.silver.module.system.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchEnums;
import cn.silver.framework.mybatis.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户和角色关联 sys_user_role
 *
 * @author Silver Zhou
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "sys_user_role")
@Schema(name = "SysUserRole", title = "用户角色对象")
public class SysUserRole extends BaseEntity {

    /**
     * 用户ID
     */
    @Schema(title = "关联用户")
    @TableField(name = "user_id", searchType = SearchEnums.EQ)
    private String userId;

    /**
     * 角色ID
     */
    @Schema(title = "关联角色")
    @TableField(name = "role_id", searchType = SearchEnums.EQ)
    private String roleId;

}
